package cn.tianya.irock.data.model;

import cn.tianya.irock.security.PermissionBase;

public class Forum extends Section {
	
	public void accessCheck(long permission, User user) {
		accessCheck(permission, user, null);
	}

	@Override
	public void accessCheck(long permission, User user, Post post) {
		ForumPermission.accessCheck(this, permission, user, post);
	}

	@Override
	public boolean validate(long permission, User user, Post post) {
		return ForumPermission.validate(this, permission, user, post);
	}
	
	@Override
	public PermissionBase getDefaultRolePermission() {
		 return new ForumPermission();
	}
}
